﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ViewRepaireIssues.ascx.cs"
    Inherits="RealtyManagementSystem.Web.Common.ViewRepaireIssues" %>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
    DataKeyNames="RepairRecordId" DataSourceID="EntityDataSource1"
    GridLines="None" BackColor="#D1EEEE" Width="300px">
    <Columns>
        <asp:BoundField DataField="RepairRecordId" HeaderText="编号" ReadOnly="True" SortExpression="RepairRecordId" />
        <asp:BoundField DataField="aspnet_Users.UserName" HeaderText="创建者" ReadOnly="True"
            SortExpression="aspnet_Users" />
        <asp:BoundField DataField="RepairItemDesc" HeaderText="维修信息" ReadOnly="True" SortExpression="RepairItemDesc" />
        <asp:BoundField DataField="CreateDate" DataFormatString="{0:yyyy/MM/dd}" HeaderText="提交时间"
            ReadOnly="True" SortExpression="CreateDate" />
        <asp:TemplateField HeaderText="状态" InsertVisible="False" SortExpression="RepairIssueStatu">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("RepairIssueStatu.Name") %>'></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%# Bind("RepairIssueStatu.Name") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
<asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=realtydbEntities"
    DefaultContainerName="realtydbEntities" EnableDelete="True" EnableFlattening="False"
    EnableInsert="True" EnableUpdate="True" EntitySetName="RepairIssues" Include="aspnet_Users, RepairIssueStatu">
</asp:EntityDataSource>